import request from '../utils/request'

//登录
function login(data) {
    return request.post('/api/login', data)
}

//注册
function register(data) {
    return request.post('/api/register', data)
}

//获取热点数据
function getHotList(data) {
    return request.post('/api/getHotList', data)
}

//获取话题数据
function getTopicList(data) {
    return request.post('/api/getTopicList', data)
}

//获取生活数据
function getLiveList(data) {
    return request.post('/api/getLiveList', data)
}

//获取睡眠数据
function getSleepList(data) {
    return request.post('/api/getSleepList', data)
}

//获取男性数据
function getManList(data) {
    return request.post('/api/getManList', data)
}

//热点搜索
function getHotSearch(data) {
    return request.post('/api/getHotSearch', data)
}

//话题搜索
function getTopicSearch(data) {
    return request.post('/api/getTopicSearch', data)
}

//生活搜索
function getLiveSearch(data) {
    return request.post('/api/getLiveSearch', data)
}

//睡眠搜索
function getSleepSearch(data) {
    return request.post('/api/getSleepSearch', data)
}

//男性搜索
function getManSearch(data) {
    return request.post('/api/getManSearch', data)
}

//获取商城数据
function getShopList(data) {
    return request.post('/api/getShopList', data)
}

//获取商城数据
function getShopDetail(data) {
    return request.post('/api/getShopDetail', data)
}

//获取商品列表
function getDepartment(data) {
    return request.post('/api/getDepartment', data)
}

//商城加入购物车
function getCarShop(data) {
    return request.post('/api/getCarShop', data)
}

//获取购物车数据
function getCarList(data) {
    return request.post('/api/getCarList', data)
}

//删除购物车
function deleteCarList(data) {
    return request.post('/api/deleteCarList', data)
}

//商品列表加入购物车
function getCarDepart(data) {
    return request.post('/api/getCarDepart', data)
}

//商品列表搜索
function getDepartSearch(data) {
    return request.post('/api/getDepartSearch', data)
}

//商城搜索
function getShopSearch(data) {
    return request.post('/api/getShopSearch', data)
}

//支付
function getPay(data) {
    return request.get('/api/pay', { params: { data } })
}

export {
    login,
    register,
    getHotList,
    getLiveList,
    getSleepList,
    getManList,
    getTopicList,
    getHotSearch,
    getTopicSearch,
    getLiveSearch,
    getSleepSearch,
    getManSearch,
    getShopList,
    getShopDetail,
    getDepartment,
    getCarShop,
    getCarList,
    deleteCarList,
    getCarDepart,
    getDepartSearch,
    getShopSearch,
    getPay
}